cordova.define("device-plugin.Device", function(require, exports, module) {
var exec = require('cordova/exec');

exports.initDevice = function ( success, error) { //初始化设备
    exec(success, error, 'Device', 'initDevice');
};

exports.setDeviceName = function (arg0, success, error) {//设置设备名称
    exec(success, error, 'Device', 'setDeviceName', [arg0]);
};
exports.conncetDevice = function ( success, error) {//连接设备
    exec(success, error, 'Device', 'conncetDevice');
};
exports.disConnectDevice = function ( success, error) {//断开设备连接
    exec(success, error, 'Device', 'disConnectDevice');
};
exports.readBankCardInfo = function (arg0, arg1,success, error) {//读取银行卡信息
    exec(success, error, 'Device', 'readBankCardInfo');
};

exports.isConnDevice = function ( success, error) {//检测 设备 是否连接
    exec(success, error, 'Device', 'isConnDevice');
};

exports.readIDCardInfo = function ( success, error) {//读取身份证信息
    exec(success, error, 'Device', 'readIDCardInfo');
};

exports.cancelOperation = function ( success, error) {//取消操作
    exec(success, error, 'Device', 'cancelOperation');
};

exports.readICCardARQC = function ( success, error) {//读取芯片卡ARQC
    exec(success, error, 'Device', 'readICCardARQC');
};

exports.readICCardARQC = function ( success, error) {//读取芯片卡ARQC
    exec(success, error, 'Device', 'readICCardARQC');
};

exports.validateARPC = function ( success, error) {//IC卡的ARPC校验。
    exec(success, error, 'Device', 'validateARPC');
};

exports.getPin = function ( success, error) {//读取密码信息
    exec(success, error, 'Device', 'getPin');
};

exports.getPublicKey = function ( success, error) {//获取公钥信息
    exec(success, error, 'Device', 'getPublicKey');
};

exports.loadMainKey = function ( success, error) {//主密钥灌注
    exec(success, error, 'Device', 'loadMainKey');
};

exports.loadWorkKey = function ( success, error) {//工作密钥灌注
    exec(success, error, 'Device', 'loadWorkKey');
};

exports.readFinger = function ( success, error) {//读取指纹
    exec(success, error, 'Device', 'readFinger');
};

exports.openSignature = function ( success, error) {//打开签名屏
    exec(success, error, 'Device', 'openSignature');
};

exports.getSignaturePhoto = function ( success, error) {//获取签名数据
    exec(success, error, 'Device', 'getSignaturePhoto');
};

exports.clearSignature = function ( success, error) {//除设备签名屏数据
    exec(success, error, 'Device', 'clearSignature');
};

exports.closeSignature = function ( success, error) {//关闭设备签名屏
    exec(success, error, 'Device', 'closeSignature');
};

exports.beiyongone = function ( success, error) {//备用标签1
    exec(success, error, 'Device', 'beiyongone');
};

exports.beiyongtwo = function ( success, error) {//备用标签2
    exec(success, error, 'Device', 'beiyongtwo');
};


exports.show = function ([arg0], success, error) {
    exec(success, error, 'Device', 'show', [arg0]);
};

});
